// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.AmazonSettlementReport;
import com.fowo.api.model.amazon.settlement.report.AmazonSettlementReportItemVo;
import com.fowo.api.model.amazon.settlement.report.AmazonSettlementReportSearchParamPo;
import com.fowo.api.model.amazon.settlement.report.AmazonSettlementReportVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AmazonSettlementReportMapper
  extends BaseMapper<AmazonSettlementReport> {
  Page<AmazonSettlementReportItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") AmazonSettlementReportSearchParamPo search
  );
  List<OptionItem<AmazonSettlementReportItemVo>> searchOptions(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );
  List<AmazonSettlementReportItemVo> search(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") AmazonSettlementReportSearchParamPo search);
  Long getIdByFinancialEventGroupId(
    @Param("financialEventGroupId") String financialEventGroupId
  );

  List<Long> getIdsByFinancialEventGroupId(@Param("list") List<String> list);

  String getFinancialEventGroupIdById(@Param("id") Long id);

  List<Map<String, Object>> getFinancialEventGroupIdByIds(
    @Param("ids") List<Long> ids
  );
  AmazonSettlementReportVo selectVoById(@Param("id") Long id);
  /**
   * 看板
   */
  List<AmazonSettlementReportItemVo> bulletinBoard(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );

  /**
   * 获取看板编号列表
   */
  List<Long> bulletinBoardIds(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );

  /**
   * 获取看板的总数
   */
  Long bulletinBoardCount(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );

  /**
   * 看板分页
   */
  Page<AmazonSettlementReportItemVo> bulletinBoardPage(
    @Param("page") Page page,
    @Param("search") AmazonSettlementReportSearchParamPo search
  );
  Date bulletinBoardLastUpdateTime(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );
  /**
   * 结算汇总
   */
  List<AmazonSettlementReportItemVo> settlementSummary(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );

  /**
   * 获取结算汇总编号列表
   */
  List<Long> settlementSummaryIds(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );

  /**
   * 获取结算汇总的总数
   */
  Long settlementSummaryCount(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );

  /**
   * 结算汇总分页
   */
  Page<AmazonSettlementReportItemVo> settlementSummaryPage(
    @Param("page") Page page,
    @Param("search") AmazonSettlementReportSearchParamPo search
  );
  Date settlementSummaryLastUpdateTime(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );
  /**
   * 交易明细
   */
  List<AmazonSettlementReportItemVo> transactionDetails(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );

  /**
   * 获取交易明细编号列表
   */
  List<Long> transactionDetailsIds(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );

  /**
   * 获取交易明细的总数
   */
  Long transactionDetailsCount(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );

  /**
   * 交易明细分页
   */
  Page<AmazonSettlementReportItemVo> transactionDetailsPage(
    @Param("page") Page page,
    @Param("search") AmazonSettlementReportSearchParamPo search
  );
  Date transactionDetailsLastUpdateTime(
    @Param("search") AmazonSettlementReportSearchParamPo search
  );
}
